﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc;

public class UserManger
{
    /// <summary>
    /// 用户id
    /// </summary>
    public static long UserId => AppEx.UserId;

    /// <summary>
    /// 账号
    /// </summary>
    public static string Account => AppEx.Account;

    /// <summary>
    /// 昵称
    /// </summary>
    public static string Name => AppEx.Name;

    /// <summary>
    /// 获取租户 Id
    /// </summary>
    public static long TenantId => AppEx.TenantId;


    /// <summary>
    /// 获取租户 Id
    /// </summary>
    public static T GetTenantId<T>() => AppEx.GetTenantId<T>();
}